import path from 'path';

interface configType {
  logFileDir: string;
  logFileName: string;
  dbHost: string;
  dbPort: string;
  dbName: string;
  serverPort: string | number;
}
let config = <configType>{};

config.logFileDir = path.join(__dirname, '../../logs');
config.logFileName = 'app.log';
config.dbHost = process.env.dbHost || 'localhost';
config.dbPort = process.env.dbPort || '27017';
config.dbName = process.env.dbName || 'tracecollection';
config.serverPort = process.env.serverPort || 4000;

export default config;
